package com.wuzuqing.android.eightdiagrams.utils;

import android.content.res.AssetManager;
import android.util.Log;

import com.wuzuqing.android.eightdiagrams.App;

import java.io.InputStream;

/**
 * @CopyRight: 广州仰望星空云科技有限公司
 * @Author : wuzuqing
 * @Email:wuzuqing@xinyu668.com
 * @CreateTime: 23.7.24 5:43 PM
 * @Description: 请写描述
 */
public class AndroidInitHelper implements IInitHelper {
    AssetManager assets = App.getContext().getAssets();
    @Override
    public InputStream open(String name) {
        try {
            return assets.open(name);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
    private static final String TAG = "LogUtils";
    @Override
    public void d(String text) {
        Log.d(TAG, text);
    }
}
